package com.test;

import com.mvc.ResponseBody;
import com.mvc.ResponseView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author Clarklevis
 * @Date 2021/5/21
 */
public class UserController {

    @ResponseBody("/login.do")
    public String login(HttpServletRequest req, HttpServletResponse resp){
        return "login success";
    }

    @ResponseView("/reg.do")
    public String register(HttpServletRequest req, HttpServletResponse resp){
        return "success.jsp";
    }
}
